// samsting : this file is auto create.

#include "Rds/2014-08-15/DescribeSQLLogReportListResponse.h"

namespace aliyun { namespace Rds {

DescribeSQLLogReportListResponse::DescribeSQLLogReportListResponse() {
}

const string& DescribeSQLLogReportListResponse::Item::LatencyTopNItem::GetSQLText(void) const {
  return SQLText_;
}

int64 DescribeSQLLogReportListResponse::Item::LatencyTopNItem::GetAvgLatency(void) const {
  return AvgLatency_;
}

int64 DescribeSQLLogReportListResponse::Item::LatencyTopNItem::GetSQLExecuteTimes(void) const {
  return SQLExecuteTimes_;
}

const string& DescribeSQLLogReportListResponse::Item::QPSTopNItem::GetSQLText(void) const {
  return SQLText_;
}

int64 DescribeSQLLogReportListResponse::Item::QPSTopNItem::GetSQLExecuteTimes(void) const {
  return SQLExecuteTimes_;
}

const std::vector<DescribeSQLLogReportListResponse::Item::LatencyTopNItem>& DescribeSQLLogReportListResponse::Item::GetLatencyTopNItems(void) const {
  return LatencyTopNItems_;
}

const std::vector<DescribeSQLLogReportListResponse::Item::QPSTopNItem>& DescribeSQLLogReportListResponse::Item::GetQPSTopNItems(void) const {
  return QPSTopNItems_;
}

const string& DescribeSQLLogReportListResponse::Item::GetReportTime(void) const {
  return ReportTime_;
}

const std::vector<DescribeSQLLogReportListResponse::Item>& DescribeSQLLogReportListResponse::GetItems(void) const {
  return Items_;
}

int DescribeSQLLogReportListResponse::GetTotalRecordCount(void) const {
  return TotalRecordCount_;
}

int DescribeSQLLogReportListResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeSQLLogReportListResponse::GetPageRecordCount(void) const {
  return PageRecordCount_;
}

const char* DescribeSQLLogReportListResponse::BaseKey(void) {
  return "DescribeSQLLogReportListResponse";
}

void DescribeSQLLogReportListResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Items__length = 0;
  UnmarshallerInt(Items__length, response_map, "DescribeSQLLogReportListResponse.Items.Length");
  if(Items__length >= 0) {
    Items_.resize(Items__length);
    for(int i1 = 0; i1 < Items__length; i1++) {
      int Items_i1_LatencyTopNItems__length = 0;
      UnmarshallerInt(Items_i1_LatencyTopNItems__length, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].LatencyTopNItems.Length");
      if(Items_i1_LatencyTopNItems__length >= 0) {
        Items_[i1].LatencyTopNItems_.resize(Items_i1_LatencyTopNItems__length);
        for(int i2 = 0; i2 < Items_i1_LatencyTopNItems__length; i2++) {
          UnmarshallerString(Items_[i1].LatencyTopNItems_[i2].SQLText_, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].LatencyTopNItems["+string_ValueOfInt(i2)+"].SQLText");
          UnmarshallerInt64(Items_[i1].LatencyTopNItems_[i2].AvgLatency_, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].LatencyTopNItems["+string_ValueOfInt(i2)+"].AvgLatency");
          UnmarshallerInt64(Items_[i1].LatencyTopNItems_[i2].SQLExecuteTimes_, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].LatencyTopNItems["+string_ValueOfInt(i2)+"].SQLExecuteTimes");
        } // for(int i2 = 0; i2 < Items_i1_LatencyTopNItems__length; i2++) {
      } // if(Items_i1_LatencyTopNItems__length >= 0) {

      int Items_i1_QPSTopNItems__length = 0;
      UnmarshallerInt(Items_i1_QPSTopNItems__length, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].QPSTopNItems.Length");
      if(Items_i1_QPSTopNItems__length >= 0) {
        Items_[i1].QPSTopNItems_.resize(Items_i1_QPSTopNItems__length);
        for(int i2 = 0; i2 < Items_i1_QPSTopNItems__length; i2++) {
          UnmarshallerString(Items_[i1].QPSTopNItems_[i2].SQLText_, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].QPSTopNItems["+string_ValueOfInt(i2)+"].SQLText");
          UnmarshallerInt64(Items_[i1].QPSTopNItems_[i2].SQLExecuteTimes_, response_map, "DescribeSQLLogReportListResponse.Items[+"+string_ValueOfInt(i1)+"].QPSTopNItems["+string_ValueOfInt(i2)+"].SQLExecuteTimes");
        } // for(int i2 = 0; i2 < Items_i1_QPSTopNItems__length; i2++) {
      } // if(Items_i1_QPSTopNItems__length >= 0) {

      UnmarshallerString(Items_[i1].ReportTime_, response_map, "DescribeSQLLogReportListResponse.Items["+string_ValueOfInt(i1)+"].ReportTime");
    } // for(int i1 = 0; i1 < Items__length; i1++) {
  } // if(Items__length >= 0) {

  UnmarshallerInt(TotalRecordCount_, response_map, "DescribeSQLLogReportListResponse.TotalRecordCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeSQLLogReportListResponse.PageNumber");
  UnmarshallerInt(PageRecordCount_, response_map, "DescribeSQLLogReportListResponse.PageRecordCount");
}


} } // namespace aliyun { namespace Rds {

// end of file 
